﻿using LDC_Shop_A.Models.Database;
using System;
using System.Collections.Generic;

namespace LDC_Shop_A.Models
{
    /// <summary>
    /// 
    /// </summary>
    public class GetUserOrderListResponse
    {
        /// <summary>
        /// 订单列表
        /// </summary>
        public List<UserOrder> OrderList { get; set; }

        /// <summary>
        /// 分页总数
        /// </summary>
        public int Total { get; set; }
    }
    /// <summary>
    /// 用户订单
    /// </summary>
    public class UserOrder
    {
        /// <summary>
        /// 订单Id
        /// </summary>
        public int OrderId { get; set; }
        /// <summary>
        /// 订单编号
        /// </summary>
        public string OrderNum { get; set; }
        /// <summary>
        /// 订单状态
        /// </summary>
        public int OrderState { get; set; }
        /// <summary>
        /// 下单时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 订单价格
        /// </summary>
        public decimal OrderPrice { get; set; }
        /// <summary>
        /// 订单商品数量
        /// </summary>
        public int OrderTotal { get; set; }
        /// <summary>
        /// 订单明细
        /// </summary>
        public List<OrderItem> OrderItems { get; set; }
    }
}
